<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition template="/templates/mainTemplate.xhtml">
	<ui:define name="pageTitle">${msg.myPicturesUpload}</ui:define>
	<ui:define name="pageHeader">${msg.myPicturesUpload}</ui:define>
	<ui:define name="maincontent">
		<h:form enctype="multipart/form-data">
			<t:messages showDetail="true" showSummary="false" forceId="true"
				style="color: red; font-weight: bold;" />
			<h:panelGrid columns="2">
				<h:outputText value="#{msg.pictureName}" />
				<h:inputText id="bildname" label="Bildname"
					value="#{fileUploadBean.pictureName}" required="true" />
			</h:panelGrid>
			<h:panelGrid columns="1">
				<t:inputFileUpload label="Uploadpfad" id="fileupload" value="#{fileUploadBean.upFile}"
					size="20" required="true"/>
				<p />
				<h:commandButton value="${msg.loadPicture}"
					action="#{fileUploadBean.upload}" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>